
<form action="actions/traitement" method="POST">

    <input type="text" name="txt_url"/>
    <input type="submit" name="btn_send" value="Send !"/>
    
</form>

<br/>

<table border="1">
    <tr>
        <th>Origine</th>
        <th>Raccourci</th>
    </tr>

<?php        
        echo $token;
        while($result = mysql_fetch_array($resultat)){

                $url = "http://".$_SERVER['HTTP_HOST']."/red/".$result['microurl'];
                ?>
                <tr>
                    <td><?php echo $result['origin']?></td>
                    <td><a href="<?php echo $url; ?>"><?php echo $url; ?></a></td>
                    <td><a href="actions/supprimer/<?php echo $result['id']; ?>">X</a></td>
                </tr>

                <?php
        }
        

?>
</table>
